package com.cfk.shopmail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cfk.common.utils.PageUtils;
import com.cfk.shopmail.product.entity.BrandEntity;
import com.cfk.shopmail.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author fengyaowen
 * @email 983050705@qq.com
 * @date 2021-11-12 22:27:02
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //保存品牌关联分类的详细信息
    void saveDail(CategoryBrandRelationEntity categoryBrandRelation);

    //品牌表关联修改此联系表方法
    void updateBrand(Long brandId, String brandName);

    //种类表关联修改此联系表方法
    void updateCategory(Long catId, String catName);

    // 获取分类关联的品牌
    List<BrandEntity> getBrandsByCatId(Long catId);
}

